<extend name="public:base" />

<block name="left">
	<div class="mark_bar cl">
		<a href="{:url('uc/index/index')}" class="goback fl"><i class="iconfont">&#xe600;</i></a>
		<p>旧邀请有礼好友</p>
	</div>
</block>

<block name="main">
	<div class="container">
		<ul class="member_nav">
			<li  <if condition="$Request.action eq 'index'">class="on"</if>>
			<a href="{:url('uc/promotion/index')}">新邀请首页</a>
			</li>
			<li  <if condition="$Request.action eq 'friend'">class="on"</if>>
			<a href="{:url('uc/promotion/friend')}">我的好友</a>
			</li>
			<li  <if condition="$Request.action eq 'reward'">class="on"</if>>
			<a href="{:url('uc/promotion/reward')}">我的奖励</a>
			</li>
		</ul>

		<notempty name="list">
			<div class="promote_data_bar small">
				<table width="100%" cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td width="33.3%">
							注册好友数<br /><b class="af90 big">{$reg_count}</b>
						</td>
						<td width="33.3%">
							实名好友数<br /><b class="af90 big">{$real_name_count}</b>
						</td>
						<td width="33.3%">
							投资好友数<br /><b class="af90 big">{$invest_count}</b>
						</td>
					</tr>
				</table>
			</div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="row_table small">
				<tr class="a999 small">
					<td width="30%">手机号码</td>
					<td width="25%">实名登记</td>
					<td width="25%">注册时间</td>
					<td width="20%" align="right">投资情况</td>
				</tr>

				<volist name="list" id="v">
					<tr>
						<td>
							<if condition="$v['user_phone'] neq ''">
								{$v.user_phone|substr=0,3}****{$v.user_phone|substr=7,4}
								<else/> 未认证手机
							</if>
						</td>
						<td>
							<if condition="$v['real_name'] neq ''">
								{$v.real_name}
								<else/>
								<span class="af60">未实名</span>
							</if>
						</td>
						<td class="accc small">{$v.reg_time}</td>
						<td align="right">
							<if condition="$v.invest_status eq '未投资'">
								<span class="af90">{$v.invest_status}</span>
								<else/>
								{$v.invest_status}
							</if>
						</td>
					</tr>
				</volist>
			</table>
			<div class="page">{$page}</div>
			<else/>
			<p class="empty">您尚未邀请有好友喔！</p>
		</notempty>
	</div>
</block>

<block name="menu"></block>